from datetime import datetime

from sqlalchemy import Column, Integer, String, DECIMAL
from sqlalchemy.dialects.mysql import LONGTEXT, JSON
from app.libs.TextRank.textRank import TextRank
from app.models.base import Base, db
from app import redisclient
from app.config.setting import *


class AmountLog(Base):
    __tablename__ = 'amount_log'
    id = Column(Integer, primary_key=True, autoincrement=True)
    user_id = Column(Integer, default=0)
    amount = Column(DECIMAL(10, 2), default=0)
    modify_log = Column(String(200), default='')
    transaction_id = Column(String(40), default='')
    pay_type = Column(String(10), default='')
    type = Column(String(10), default='in')
    report_number = Column(String(40), default='')
    goods = Column(String(50), default='')
    goods_number = Column(String(50), default='')
    goods_name = Column(String(100), default='')
